package com.github.pig.sales.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 领用记录
 * </p>
 *
 * @author andrew
 * @since 2018-06-23
 */
@TableName("sales_collar_his")
public class SalesCollarHis extends Model<SalesCollarHis> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "fid", type = IdType.AUTO)
    private Integer fid;
    /**
     * 跟进人
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 领用日期
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 状态
     */
    @TableField("biz_status")
    private String bizStatus;
    /**
     * 删除
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 学员
     */
    @TableField("student_id")
    private Integer studentId;


    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getBizStatus() {
        return bizStatus;
    }

    public void setBizStatus(String bizStatus) {
        this.bizStatus = bizStatus;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    @Override
    protected Serializable pkVal() {
        return this.fid;
    }

    @Override
    public String toString() {
        return "SalesCollarHis{" +
        ", fid=" + fid +
        ", userId=" + userId +
        ", createDate=" + createDate +
        ", bizStatus=" + bizStatus +
        ", delFlag=" + delFlag +
        ", updateTime=" + updateTime +
        ", studentId=" + studentId +
        "}";
    }
}
